<template>
  <el-card class="box-card" :shadow="title ? 'hover' : ''">
    <div slot="header" class="clearfix" v-if="title">
      <h2 class="card-title">
        <mallki class-name="mallki-text" :text="title" />
      </h2>
    </div>
    <div class="card-body">
      <slot> </slot>
    </div>
  </el-card>
</template>

<script>
import Mallki from "@/components/TextHoverEffect/Mallki";
export default {
  name: "Card",
  components: {
    Mallki,
  },
  props: {
    title: {
      type: String,
      default: "",
    },
  },
};
</script>

<style lang="scss" >
.box-card {
  .el-card__header {
    padding: 10px 20px;
  }
  margin: 10px 0;
}
</style>